<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>首页</title>
    <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
  </head>
  <body>
  <h1>${user==null?"请":"欢迎".concat(user.nickname)}登录!</h1>
    <div>
       <form action="/news" method="get">
        <input type="hidden" name="op" value="list">
        <input type="text" name="keywords">
        <input type="submit" value="搜索">
       </form>
    </div>
  <ul>
      <li><a href="/news?op=list">新闻管理</a></li>
      <c:if test="${user!=null}">
      <li><a href="/user?op=toPassword">修改密码</a></li>
      </c:if>
  </ul>

  </body>
</html>
